import request from '@/utils/request'

export const LoginAPI = (data) =>
  request({
    url: '/user-service/user/login',
    method: 'POST',
    data
  })

export const getLoginImgAPI = (id) =>
  request({
    url: `/user-service/user/imageCode/${id}`
  })

export const getImgAPI = (fileName) =>
  request({
    url: '/vm-service/sku/fileUpload',
    method: 'POST',
    fileName
  })
